package service.impl;

import java.util.List;

import model.Datentraeger;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

/**
 * Repository interface for {@link Datentraeger} instances. Provides basic CRUD
 * operations due to the extension of {@link JpaRepository}. Includes custom
 * implemented functionality by extending
 * {@link DatentraegerRepositoryFilmVerwaltung}.
 * 
 * @author Andre
 */
public interface DatentraegerRepository extends
		CrudRepository<Datentraeger, Long>,
		DatentraegerRepositoryFilmVerwaltung {

	/**
	 * Find all Datentraegers with the given name. This method will be
	 * translated into a query by constructing it directly from the method name
	 * as there is no other query declared.
	 * 
	 * @param name
	 * @return
	 */
	List<Datentraeger> findByName(String name);

}
